#include "segement.h"
#include <cmath>


Segment::Segment(double start, double end) :
    startpoint(start), endpoint(end)
{
}

Segment::~Segment()
{
}

double Segment::GetLength() const 
{
    return std::abs(endpoint - startpoint);
}
